package com.chen.service;

import com.alibaba.dashscope.common.Message;
import com.chen.bean.entity.MessageEntity;

import java.util.List;

public interface MessageService {

    public void saveMessageToRedis(String key, List<MessageEntity> messageList);

    List<MessageEntity> queryByDialogNumber(String dialogNumber);

    void batchSave(List<MessageEntity> cacheList);

    public List<Message> buildMessageList(List<MessageEntity> messageList);

    public MessageEntity buildMessageEntity(String dialogNumber, String role,String content);

}
